import axios from 'axios'
axios.defaults.baseURL = "'http://toutiao-app.itheima.net'"
export default ({ url, method, params, data, headers }) => {
  return axios({
    url,
    method,
    params,
    data,
    headers
  })
}
